#ifndef _SPEED_H
#define _SPEED_H

#include "Iw2D.h"
#include "vector2.h"
#include "random.h"
#include "boundingbox.h"
#include "math.h"
#include "variables.h"

class Speed
{
public:
	Speed();
	~Speed();
	void SetupImages();
	void CleanupImages();
    void Render();
    void Update(int deltaTimeMs);
	void Spawn();
	void UnSpawn();

	Vector2 position;
	BoundingBox boundingBox;
	bool readyToSpawn;

private:
	CIw2DImage* speedSprite;
	int width;
	int height;
	int widthHalf;
	int heightHalf;
	int timeUnSpawned;
	int displayWidth;
	int displayHeight;
	bool onStage;
};

#endif